﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvantGameMachine.DataManagement;
using AvantGameMachine.Events;

namespace AvantGameMachine.Graphics.InternalObjects
{
    public class SystemLoader : BackgroundLoader
    {
        Font loadingFont = null;
        TextRenderObject loadingText = null;

        public override void LoadBasic()
        {
            base.LoadBasic();
            loadingFont = AGMPlatform.TRManager.GetNewFont(new Address("System/segoepr.ttf"), 64);
            loadingText = this.CreateNew<TextRenderObject>("LoadingText");
            loadingText.TextFont = loadingFont;
            loadingText.Text = "Loading...";
        }

        public override void Start()
        {
            SetAddress2Load(new Address("System"));
            base.Start();
        }
    }
}
